/**
 * 手机号脱敏
 */
 const phoneNumberDesensitization = (str:string) => {
  return str.replace(/(\d{3})\d*(\d{4})/, '$1****$2');
};
console.log(phoneNumberDesensitization('13503609930'));